package Deom;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-26
 * Time: 17:26
 */
public class Main {
    public static void main(String[] args) {
        String str1 = "zhoubin";
        String str2 = "lisi";
        //比较str1与str2的大小利用compareTo方法
        if(str1.compareTo(str2)>0) {
            System.out.println("str1>str2");
        } else {
            System.out.println("str1<=str2");
        }
    }
}
